package com.wnxy.mapper;

import com.wnxy.bean.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    User selectByPrimaryKey(Integer id);

    List<User> selectAll();

    int updateByPrimaryKey(User record);

    User selectByNameAndPwd(@Param("name") String name,@Param("pwd") String pwd);

    @Select("select Count(*) from _user")
    int selectAllCount();
}